<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
	protected function _initDoctype()
	{
//        print_r($this);
		$this->bootstrap('view');
		$view = $this->getResource('view');
		$view->doctype('HTML5');
		$view->headMeta()->setCharset('UTF-8')
				 ->setName('author', 'Ghold'); 
		$view->headLink()->appendStylesheet('/css/reset.css')
		                 ->appendStylesheet('/css/default-theme/jquery-ui-1.8.23.custom.css')
		                 ->appendStylesheet('/css/default.css');
		$view->headScript()->appendFile('/js/jquery.js')
                           ->appendFile('/js/jquery-ui-1.8.23.custom.min.js')
        				   ->appendFile('/js/default.js')
        				   ->appendFile('/js/patternizer.js')
        				   ->appendFile('/js/canvas.js');

		$params = array ('host'     => 'localhost',
                		 'username' => 'root',
                		 'password' => '123456',
                         'dbname'   => 'blog',
                         'charset'  => 'utf8',
				 'unix_socket'    => '/tmp/mysql.sock');

		$db = Zend_Db::factory('Pdo_Mysql', $params);
		Zend_Db_Table::setDefaultAdapter($db);
		
	}

}

